package common;

import java.util.List;

public class Change {
    public int predicate;
    public String oldPort;
    public String newPort;

    public Change(int predicate, String oldPort, String newPort) {
        this.predicate = predicate;
        this.oldPort = oldPort;
        this.newPort = newPort;
    }

    public int getHit() {
        return predicate;
    }

    public String getNewPort() {
        return newPort;
    }

    public String getOldPort() {
        return oldPort;
    }

    @Override
    public String toString() {
        return String.format("pred:%s from:%s to:%s", predicate, oldPort, newPort);
    }
}